# -------------------------------------------------------------------
#       -*- coding: utf-8 -*-
#   @Project    :   spider
#   @File       :   12_headers.py
#   @Author     :   WANGYU
#   @Time       :   2021-08-16 22:57:35
#   @Software   :   PyCharm
#   @Desc       :   
# -------------------------------------------------------------------
import requests

query = input('input name：')

url = f'https://www.sogou.com/web?query={query}'

headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
}
resp = requests.get(url, headers=headers)

print(resp)
print(resp.text)
